package com.xcity.game.pet.template;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Binding;
import naga.x.game.template.annotation.Excel;

/**
 * 宠物
 * @author yang.li
 *
 */
@Excel(value = "pet.xlsx", sheet = 0)
public class PetTemplate extends Template {

	/** 宠物名 */
	protected String name;

	/** 类型 */
	protected String type;
	
	/** 形象动画 */
	protected String animation;

	/** 性别(1:公;2:母) */
	protected byte sex;

	/** 头像 */
	protected String icon;

	/** 精神 */
	protected int spirit;

	/** 每小时消耗精神 */
	protected int lostSpirit;

	/** 成长值 */
	protected int growthVal;

	/** 初始技能 */
	protected int bornSkill;

	/** 领悟技能 */
	protected int secondSkill;

	/** 领悟技能概率 */
	protected int secondSkillProbability;
	
	/** 每日消耗粮食(个) */
	protected int food;
	
	/** 洗澡花费 */
	protected int washCost;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getAnimation() {
		return animation;
	}

	public void setAnimation(String animation) {
		this.animation = animation;
	}

	public byte getSex() {
		return sex;
	}

	public void setSex(byte sex) {
		this.sex = sex;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getSpirit() {
		return spirit;
	}

	public void setSpirit(int spirit) {
		this.spirit = spirit;
	}

	public int getLostSpirit() {
		return lostSpirit;
	}

	public void setLostSpirit(int lostSpirit) {
		this.lostSpirit = lostSpirit;
	}

	public int getGrowthVal() {
		return growthVal;
	}

	public void setGrowthVal(int growthVal) {
		this.growthVal = growthVal;
	}

	public int getBornSkill() {
		return bornSkill;
	}

	public void setBornSkill(int bornSkill) {
		this.bornSkill = bornSkill;
	}

	public int getSecondSkill() {
		return secondSkill;
	}

	public void setSecondSkill(int secondSkill) {
		this.secondSkill = secondSkill;
	}

	public int getSecondSkillProbability() {
		return secondSkillProbability;
	}

	public void setSecondSkillProbability(int secondSkillProbability) {
		this.secondSkillProbability = secondSkillProbability * 100; // 概率基数为1000，所以乘以100 @see GameStaticConfig#defaultChanceBase
	}
	
	public int getFood() {
		return food;
	}

	public void setFood(int food) {
		this.food = food;
	}

	public int getWashCost() {
		return washCost;
	}

	public void setWashCost(int washCost) {
		this.washCost = washCost;
	}

	@Override
	public void validate() throws TemplateException {}
}
